﻿
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Vidh.SimplyToDo.Entities
{
    public class Member : BaseEntity
    {
        [Key]
        public virtual int Id { get; set; }

        [Required]
        [StringLength(50)]
        public virtual string FirstName { get; set; }

        [Required]
        [StringLength(50)]
        public virtual string LastName { get; set; }

        [Required]
        [StringLength(100)]
        public virtual string Email { get; set; }

        [Required]
        [StringLength(12)]
        public virtual string Password { get; set; }

        public virtual ICollection<MemberTask> Tasks { get; set; }
    }
}
